/**
 * @author hugan
 * @date 2023/10/8
 */
export default {
  // isDev: true,
  isDev: false,
  axiosBaseUrl() {
    let res
    if (!this.isDev) {
      res = ''
    } else {
      //适配[localhost,ip, 局域网,idea静态代理]
      res = `http://${document.domain}:8088`
    }
    console.log('axiosBaseUrl', res)
    return res
  },
  wsBaseUrl() {
    let res
    if (!this.isDev) {
      res = `ws://${document.domain}:${location.port}`
    } else {
      //适配[localhost,ip 局域网,idea静态代理]
      res = `ws://${document.domain}:8088`
    }
    console.log('wsUrl', res)
    return res
  },
}